package com.qingsong.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.qingsong.dto.BannerInsertDTO;
import com.qingsong.dto.BannerPageDTO;
import com.qingsong.vo.BannerSimpleListVO;
import com.qingsong.dto.BannerUpdateDTO;
import com.qingsong.entity.Banner;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 横幅表 服务层。
 *
 * @author qingsong
 * @since 2024-12-22
 */
public interface BannerService extends IService<Banner> {

    boolean insert(BannerInsertDTO dto);
    Banner select(Long id);
    List<Banner> list();

    List<Banner> top(Long n);
    Page<Banner> page(BannerPageDTO dto);
    boolean update(BannerUpdateDTO dto);
    boolean delete(Long id);
    boolean deleteBatch(List<Long> ids);
    List<BannerSimpleListVO> simpleList();
    String uploadBanner(MultipartFile bannerFile, Long id);

}
